package com.finley.flowabledemo.design.state.demo02.source;


import cn.hutool.core.util.StrUtil;

/**
 * @description:
 * @author: xianfei.chao
 * @date 2025/6/24 17:13
 * @version: 1.0
 */
public class DatabaseConnection2 {

    public DatabaseConnection2(String url, String conn, String sql) {

    }

    public String connect(){
        return StrUtil.format("数据库:开启数据库连接......");
    }

    public String executeUpdate(String sql){
        System.out.println(StrUtil.format("数据库:执行操作,sql语句:[{}]", sql));
        return sql;
    }

    public void close(){
        System.out.println(StrUtil.format("数据库:关闭数据库连接......."));
    }
}
